package blackspire.action.issues;

import java.util.List;

import blackspire.model.issue.Issue;
import blackspire.service.issues.IssuesService;

import com.opensymphony.xwork2.ActionSupport;

public class IssuesAction extends ActionSupport
{
	private IssuesService issuesService;
	private List<Issue> issues;

	public IssuesAction(IssuesService issuesService)
	{
		this.issuesService = issuesService;

		this.issues = this.issuesService.findAll();

	}

	public String execute() throws Exception
	{
		return SUCCESS;
	}
	
    public List<Issue> getIssues() {
        return issues;
    }
    
}